STEP 12: Let's have our sprite invite our guests to the party!

We use plus signs to combine strings and string variables. This is called string concatenation.

  • Drag Say indented inside the function.
  • Inside the .say(), replace "I am a sprite." with this: "Come to my " + theme + " themed party!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)